import {
	createSSRApp
} from "vue";
import App from "./App.vue";

// 引入UV-UI
import uvUI from '@climblee/uv-ui';

// 引入封装请求服务
import request from "./services/request";

// 引入自定义工具函数
import tools from "./tools/tools";

export function createApp() {
	const app = createSSRApp(App);

    // 挂载
    app.use(uvUI);
    app.use(tools);

    request(app);

	return {
		app,
	};
}
